import { privacyChannel } from "./privacyChannel";
import { prv } from "./prv";

const { ccclass, property } = cc._decorator;

@ccclass
export default class privacyRuanZhu extends cc.Component {

    @property(cc.Node)
    btn_fcm12: cc.Node = null;

    @property(cc.Node)
    node_privacyView: cc.Node = null;

    @property(cc.Label)
    t_ruanzhu: cc.Label = null;

    @property(cc.Label)
    t_info: cc.Label = null;

    onLoad() {
        this.btn_fcm12.on(cc.Node.EventType.TOUCH_END, () => {
            this.node_privacyView.active = !this.node_privacyView.active;
        }, this);

        this.node_privacyView.on(cc.Node.EventType.TOUCH_END, () => {
            this.node_privacyView.active = !this.node_privacyView.active;
        }, this);

        this.t_ruanzhu.string = privacyChannel.getChannel().ruanzhu;
        this.t_info.string = privacyChannel.getChannel().info;

        //这里作为入口初始化
        prv.init();
    }

    // start () {

    // }

    // update (dt) {}
}
